<?php
/**
 * @author Wayne
* @copyright Jiuchi Information Technology Co.,Ltd
*/
?>
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<style>
</style>
<div class="nav clearfix">
    <div class="logo"><a href="/index/index.html"><img src="../../../assets/images/index/logo.png" alt="七维教育"></a></div>
    <ul class="menu">
        <li id="about">
            <a href="/about/scholar.html">
                <span style="display:inline-block;position: relative;padding-right: 25px;">维观
                    <i style="background: url('../../../assets/images/icon/arrow-bottom.png') no-repeat;position: absolute;right: 0;top: 50%;margin-top: -4px;width: 16px;height: 9px;"></i>
                </span>
            </a>
            <ul class="sub-menu">
                <li><a href="/about/news.html">七维动态</a></li>
                <li><a href="/about/comprehend.html">了解七维</a></li>
                <li><a href="/about/jobs.html">加入我们</a></li>
                <li><a href="/about/business.html">商业合作</a></li>
                <li><a href="/about/scholar.html">学者风采</a></li>
                <li><a href="/about/social.html">社会责任</a></li>
                <li><a href="/about/law.html">法律声明</a></li>
            </ul>	
        </li>
        <li id="classroom">
            <a href="/classroom/index.html">功能教室</a>
        </li>
        <li id="software">
            <a href="/software/index.html">软件产品</a>
        </li>
        <li id="learning">
            <a href="/learning/index.html">学术支持</a>
        </li>
    </ul>
</div>
<script type="text/javascript">
    (function(){
        var label=GetController();
        var $all=$('.menu').children();
        var $about=$('#about');
        var $classroom=$('#classroom');
        var $software=$('#software');
        var $learning=$('#learning');
        switch (label) {
            case "/about/":
                $all.removeClass();
                $about.addClass("active");
                break;
            case "/classroom/":
                $all.removeClass();
                $classroom.addClass("active");
                break;
            case "/software/":
                $all.removeClass();
                $software.addClass("active");
                break;
            case "/learning/":
                $all.removeClass();
                $learning.addClass("active");
                break;
            default:
                break;
        }
        function GetController()
        {
            var reg = /\/([^\/]*)\//g;
            var r = window.location.href.match(reg);
            if(r!=null)return r[1];
        }
    })();
</script>  